<?php
//File layout
defined('_JEXEC') or die;
?>
<ul class="menu<?php  echo $class_sfx;?>"
<?php
//$tag = '';
//if ($params->get('tag_id')!=NULL) {
//	$tag = $params->get('tag_id').'';
//	echo ' id="'.$tag.'"';
//}
?>
<?php

$items = modNewDayHelper::getCatalog();
//JError::raiseWarning(100,"123".$items[1]->title);
//for($i = 0; $i < 10; $i++)
	foreach ($items as $item) :
	{
		$class = 'item-'.$item->id;

		echo '<li'.$class.'>';
		//var_export($item);
		//JError::raiseWarning(10, $items.count());

		//var_export($item);
		//JError::raiseWarning(100, $item);
		echo '<a href="/appstore/index.php?option=com_appcategorys&id='.$item->id.'"';

		echo '>';	
		echo '<span>';
		echo $item->title;
		echo '</span>';
		echo '</a>';
		echo '</li>';
		echo '<br />';
		//require JModuleHelper::getLayoutPath('mod_newday', 'default_'.$item->title);
		//require JModuleHelper::getLayoutPath('mod_newday', 'default_url');
	}
	endforeach;
	?></ul>
;
